TITLE INTEIROS
.MODEL SMALL
.STACK 100h
.DATA

CR EQU 0Ah
LF EQU 0Dh

MSG DB 'DIGITE O CARACTER: $'
MSG1 DB 'DIGITE O NUMERO DE REPETICOES (ENTRE 2 E 9): $'
B DB ?
X DB ?

.CODE
MAIN PROC

MOV DX,@DATA
MOV DS,DX

MOV AH,9
LEA DX,MSG
INT 21h

MOV AH,1
INT 21h
MOV B,AL

MOV AH,2
MOV DL,CR
INT 21h
MOV DL,LF
INT 21h

MOV AH,9
LEA DX,MSG1
INT 21h

MOV AH,1
INT 21h
MOV X,AL

MOV AH,2
MOV DL,CR
INT 21h
MOV DL,LF
INT 21h

SUB X,30h

MOV DL,B
MOV AH,2

FOR:
INT 21h

DEC X
CMP X,0d
JNE FOR

MOV AH,4Ch
INT 21h

MAIN ENDP
END MAIN